package com.shuang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbGoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbGoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGIdIsNull() {
            addCriterion("g_id is null");
            return (Criteria) this;
        }

        public Criteria andGIdIsNotNull() {
            addCriterion("g_id is not null");
            return (Criteria) this;
        }

        public Criteria andGIdEqualTo(Long value) {
            addCriterion("g_id =", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotEqualTo(Long value) {
            addCriterion("g_id <>", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThan(Long value) {
            addCriterion("g_id >", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdGreaterThanOrEqualTo(Long value) {
            addCriterion("g_id >=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThan(Long value) {
            addCriterion("g_id <", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdLessThanOrEqualTo(Long value) {
            addCriterion("g_id <=", value, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdIn(List<Long> values) {
            addCriterion("g_id in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotIn(List<Long> values) {
            addCriterion("g_id not in", values, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdBetween(Long value1, Long value2) {
            addCriterion("g_id between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGIdNotBetween(Long value1, Long value2) {
            addCriterion("g_id not between", value1, value2, "gId");
            return (Criteria) this;
        }

        public Criteria andGTitleIsNull() {
            addCriterion("g_title is null");
            return (Criteria) this;
        }

        public Criteria andGTitleIsNotNull() {
            addCriterion("g_title is not null");
            return (Criteria) this;
        }

        public Criteria andGTitleEqualTo(String value) {
            addCriterion("g_title =", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleNotEqualTo(String value) {
            addCriterion("g_title <>", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleGreaterThan(String value) {
            addCriterion("g_title >", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleGreaterThanOrEqualTo(String value) {
            addCriterion("g_title >=", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleLessThan(String value) {
            addCriterion("g_title <", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleLessThanOrEqualTo(String value) {
            addCriterion("g_title <=", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleLike(String value) {
            addCriterion("g_title like", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleNotLike(String value) {
            addCriterion("g_title not like", value, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleIn(List<String> values) {
            addCriterion("g_title in", values, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleNotIn(List<String> values) {
            addCriterion("g_title not in", values, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleBetween(String value1, String value2) {
            addCriterion("g_title between", value1, value2, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGTitleNotBetween(String value1, String value2) {
            addCriterion("g_title not between", value1, value2, "gTitle");
            return (Criteria) this;
        }

        public Criteria andGSellPointIsNull() {
            addCriterion("g_sell_point is null");
            return (Criteria) this;
        }

        public Criteria andGSellPointIsNotNull() {
            addCriterion("g_sell_point is not null");
            return (Criteria) this;
        }

        public Criteria andGSellPointEqualTo(String value) {
            addCriterion("g_sell_point =", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointNotEqualTo(String value) {
            addCriterion("g_sell_point <>", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointGreaterThan(String value) {
            addCriterion("g_sell_point >", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointGreaterThanOrEqualTo(String value) {
            addCriterion("g_sell_point >=", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointLessThan(String value) {
            addCriterion("g_sell_point <", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointLessThanOrEqualTo(String value) {
            addCriterion("g_sell_point <=", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointLike(String value) {
            addCriterion("g_sell_point like", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointNotLike(String value) {
            addCriterion("g_sell_point not like", value, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointIn(List<String> values) {
            addCriterion("g_sell_point in", values, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointNotIn(List<String> values) {
            addCriterion("g_sell_point not in", values, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointBetween(String value1, String value2) {
            addCriterion("g_sell_point between", value1, value2, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGSellPointNotBetween(String value1, String value2) {
            addCriterion("g_sell_point not between", value1, value2, "gSellPoint");
            return (Criteria) this;
        }

        public Criteria andGMainImageIsNull() {
            addCriterion("g_main_image is null");
            return (Criteria) this;
        }

        public Criteria andGMainImageIsNotNull() {
            addCriterion("g_main_image is not null");
            return (Criteria) this;
        }

        public Criteria andGMainImageEqualTo(String value) {
            addCriterion("g_main_image =", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageNotEqualTo(String value) {
            addCriterion("g_main_image <>", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageGreaterThan(String value) {
            addCriterion("g_main_image >", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageGreaterThanOrEqualTo(String value) {
            addCriterion("g_main_image >=", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageLessThan(String value) {
            addCriterion("g_main_image <", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageLessThanOrEqualTo(String value) {
            addCriterion("g_main_image <=", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageLike(String value) {
            addCriterion("g_main_image like", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageNotLike(String value) {
            addCriterion("g_main_image not like", value, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageIn(List<String> values) {
            addCriterion("g_main_image in", values, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageNotIn(List<String> values) {
            addCriterion("g_main_image not in", values, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageBetween(String value1, String value2) {
            addCriterion("g_main_image between", value1, value2, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andGMainImageNotBetween(String value1, String value2) {
            addCriterion("g_main_image not between", value1, value2, "gMainImage");
            return (Criteria) this;
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Long value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Long value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Long value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Long value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Long value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Long value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Long> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Long> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Long value1, Long value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Long value1, Long value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andGnumIsNull() {
            addCriterion("gNum is null");
            return (Criteria) this;
        }

        public Criteria andGnumIsNotNull() {
            addCriterion("gNum is not null");
            return (Criteria) this;
        }

        public Criteria andGnumEqualTo(Long value) {
            addCriterion("gNum =", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumNotEqualTo(Long value) {
            addCriterion("gNum <>", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumGreaterThan(Long value) {
            addCriterion("gNum >", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumGreaterThanOrEqualTo(Long value) {
            addCriterion("gNum >=", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumLessThan(Long value) {
            addCriterion("gNum <", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumLessThanOrEqualTo(Long value) {
            addCriterion("gNum <=", value, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumIn(List<Long> values) {
            addCriterion("gNum in", values, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumNotIn(List<Long> values) {
            addCriterion("gNum not in", values, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumBetween(Long value1, Long value2) {
            addCriterion("gNum between", value1, value2, "gnum");
            return (Criteria) this;
        }

        public Criteria andGnumNotBetween(Long value1, Long value2) {
            addCriterion("gNum not between", value1, value2, "gnum");
            return (Criteria) this;
        }

        public Criteria andGStatusIsNull() {
            addCriterion("g_status is null");
            return (Criteria) this;
        }

        public Criteria andGStatusIsNotNull() {
            addCriterion("g_status is not null");
            return (Criteria) this;
        }

        public Criteria andGStatusEqualTo(Short value) {
            addCriterion("g_status =", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotEqualTo(Short value) {
            addCriterion("g_status <>", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusGreaterThan(Short value) {
            addCriterion("g_status >", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("g_status >=", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusLessThan(Short value) {
            addCriterion("g_status <", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusLessThanOrEqualTo(Short value) {
            addCriterion("g_status <=", value, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusIn(List<Short> values) {
            addCriterion("g_status in", values, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotIn(List<Short> values) {
            addCriterion("g_status not in", values, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusBetween(Short value1, Short value2) {
            addCriterion("g_status between", value1, value2, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGStatusNotBetween(Short value1, Short value2) {
            addCriterion("g_status not between", value1, value2, "gStatus");
            return (Criteria) this;
        }

        public Criteria andGAddTimeIsNull() {
            addCriterion("g_add_time is null");
            return (Criteria) this;
        }

        public Criteria andGAddTimeIsNotNull() {
            addCriterion("g_add_time is not null");
            return (Criteria) this;
        }

        public Criteria andGAddTimeEqualTo(Date value) {
            addCriterion("g_add_time =", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeNotEqualTo(Date value) {
            addCriterion("g_add_time <>", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeGreaterThan(Date value) {
            addCriterion("g_add_time >", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("g_add_time >=", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeLessThan(Date value) {
            addCriterion("g_add_time <", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("g_add_time <=", value, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeIn(List<Date> values) {
            addCriterion("g_add_time in", values, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeNotIn(List<Date> values) {
            addCriterion("g_add_time not in", values, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeBetween(Date value1, Date value2) {
            addCriterion("g_add_time between", value1, value2, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("g_add_time not between", value1, value2, "gAddTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeIsNull() {
            addCriterion("g_update_time is null");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeIsNotNull() {
            addCriterion("g_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeEqualTo(Date value) {
            addCriterion("g_update_time =", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeNotEqualTo(Date value) {
            addCriterion("g_update_time <>", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeGreaterThan(Date value) {
            addCriterion("g_update_time >", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("g_update_time >=", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeLessThan(Date value) {
            addCriterion("g_update_time <", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("g_update_time <=", value, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeIn(List<Date> values) {
            addCriterion("g_update_time in", values, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeNotIn(List<Date> values) {
            addCriterion("g_update_time not in", values, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("g_update_time between", value1, value2, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("g_update_time not between", value1, value2, "gUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGPriceIsNull() {
            addCriterion("g_price is null");
            return (Criteria) this;
        }

        public Criteria andGPriceIsNotNull() {
            addCriterion("g_price is not null");
            return (Criteria) this;
        }

        public Criteria andGPriceEqualTo(Long value) {
            addCriterion("g_price =", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceNotEqualTo(Long value) {
            addCriterion("g_price <>", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceGreaterThan(Long value) {
            addCriterion("g_price >", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceGreaterThanOrEqualTo(Long value) {
            addCriterion("g_price >=", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceLessThan(Long value) {
            addCriterion("g_price <", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceLessThanOrEqualTo(Long value) {
            addCriterion("g_price <=", value, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceIn(List<Long> values) {
            addCriterion("g_price in", values, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceNotIn(List<Long> values) {
            addCriterion("g_price not in", values, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceBetween(Long value1, Long value2) {
            addCriterion("g_price between", value1, value2, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGPriceNotBetween(Long value1, Long value2) {
            addCriterion("g_price not between", value1, value2, "gPrice");
            return (Criteria) this;
        }

        public Criteria andGBarcodeIsNull() {
            addCriterion("g_barcode is null");
            return (Criteria) this;
        }

        public Criteria andGBarcodeIsNotNull() {
            addCriterion("g_barcode is not null");
            return (Criteria) this;
        }

        public Criteria andGBarcodeEqualTo(String value) {
            addCriterion("g_barcode =", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeNotEqualTo(String value) {
            addCriterion("g_barcode <>", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeGreaterThan(String value) {
            addCriterion("g_barcode >", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeGreaterThanOrEqualTo(String value) {
            addCriterion("g_barcode >=", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeLessThan(String value) {
            addCriterion("g_barcode <", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeLessThanOrEqualTo(String value) {
            addCriterion("g_barcode <=", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeLike(String value) {
            addCriterion("g_barcode like", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeNotLike(String value) {
            addCriterion("g_barcode not like", value, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeIn(List<String> values) {
            addCriterion("g_barcode in", values, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeNotIn(List<String> values) {
            addCriterion("g_barcode not in", values, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeBetween(String value1, String value2) {
            addCriterion("g_barcode between", value1, value2, "gBarcode");
            return (Criteria) this;
        }

        public Criteria andGBarcodeNotBetween(String value1, String value2) {
            addCriterion("g_barcode not between", value1, value2, "gBarcode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}